package com.keshi.openplatform.payment;

import com.keshi.openplatform.payment.mq.SendPayMentMQStream;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.stream.annotation.EnableBinding;

@SpringBootApplication
@EnableBinding({SendPayMentMQStream.class})
public class PaymentStartApp  extends SpringBootServletInitializer {
    public static void main (String[] args){
        SpringApplication.run(PaymentStartApp.class,args);
    }
//web项目需要重写的方法
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(PaymentStartApp.class);
    }
}
